import PyV8
#from document import *

class Window(PyV8.JSClass):
	def __init__(self):
		self.closed        = ''
		#self.document 	   = Document()
		self.defaultStatus = ''
		self.frames 	   = ''
		self.history       = ''
		
		# Not supported by IE
		self.innerWidth    = ''
		self.innerHeight   = ''
		
		self.outerWidth    = ''
		self.outerHeight   = ''
		self.length        = ''
		self.length        = ''
		self.location      = ''
		self.name 		   = ''
		self.opener 	   = ''
		self.parent 	   = ''
		#self.self ???
		self.status 	   = ''
		self.top 		   = None
		
		# Not supported by IE
		self.pageXOffset   = ''
		self.pageYOffset   = ''
		self.screenX 	   = ''
		self.screenY       = ''
		
		# Only in IE
		self.screenLeft = ''
		self.screenTop = ''
	
	def alert(self, msg):
		print "\t\t--> Website attempted an alert: " + msg
		
	def blur(self):
		pass
		
	def clearInterval(self, id):
		pass
		
	def clearTimeout(self, id):
		pass
		
	def confirm(self, msg):
		pass
		
	def find(self, string):
		# Firefox only
		print "\t\t--> Called Firefox only function, find"
		
	def focus(self):
		pass
		
	def home(self):
		# Firefox only
		print "\t\t--> Called Firefox only function, home"
		
	def moveBy(self, dx, dy):
		pass
		
	def moveTo(self, x, y):
		pass
		
	def open(self, url, name, features, replace):
		print "\t\t--> Attempting to open URL: " + url
		
	#def print(self):
	#	pass
		
	def prompt(self, message, input):
		print "\t\t--> Website attempted a prompt: " + message
		
	def resizeBy(self, dx, dy):
		pass
		
	def resizeTo(self, x, y):
		pass
		
	def scrollBy(self, dx, dy):
		pass
		
	def scrollTo(self, x, y):
		pass
		
	def setInterval(self, func, interval, args):
		pass
		
	def setTimeout(self, func, interval, args):
		pass
		
	def stop(self):
		pass

